package com.hsd.core.filter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>
 * 类描述：移动端访问拦截器
 * <p>
 * 创建人：Abdi
 * <p>
 * 创建时间：2013-11-09 下午02:11:08
 */
public class MobileInspector implements HandlerInterceptor{
	/**
	 * 对移动端的访问
	 * username password token进行校验
	 */
	@Override
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
		System.out.println("处理前.......................");
		return true;
	}
	
	@Override
	public void afterCompletion(HttpServletRequest request,
			HttpServletResponse response, Object handler, Exception ex)
			throws Exception {
		System.out.println("处理后.......................");
	}

	@Override
	public void postHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler,
			ModelAndView modelAndView) throws Exception {
		System.out.println("处理中.......................");
	}
}
